﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace Web.admin.UserClass
{
    public partial class Add : System.Web.UI.Page
    {
        //BLL.UserClass usercalss = new BLL.UserClass();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        //protected void btn_Save_Click(object sender, EventArgs e) {
        //    if (!string.IsNullOrEmpty(txt_userClass.Value))
        //    {
        //        StringBuilder sbd = new StringBuilder();
        //        for (int i = 0; i < CheckBoxList1.Items.Count; i++) {
        //            if (CheckBoxList1.Items[i].Selected) {
        //                sbd.Append(i + ",");
        //            }
        //        }
        //        int j = usercalss.AddClass(txt_userClass.Value, sbd.ToString());
        //        if (j > 0) {
        //            Response.Write("<script>alert('添加成功')</script>");
        //        }
        //        else
        //            Response.Write("<script>alert('添加失败')</script>");
                
        //    }
        //    else {
        //        Response.Write("<script>alert('类别名称不能为空')</script>");
        //    }
        //}
    }
}